package com.nov.multidatasource.dao.primary;

import com.nov.multidatasource.entity.primary.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Mapper
public interface V3FileInfoMapper {



    List<String> getShareBaseIndexByFileId(@Param(value = "fileId") String fileId);

    List<Map<String,Object>> getObjectIdByFileId(@Param(value = "fileId") String fileId);

    int batchInsertTCenterFileBaseIndex(@Param(value = "list") List<TCenterFileBaseIndex> list);

    int batchUpdateFileSyncStatus(@Param(value = "list") List<String> list, @Param(value = "status") Integer status);

    List<TCenterFileBaseIndex> queryPangangCenterFileIndex(@Param("start") Integer start, @Param("pageSize") Integer pageSize);
    int queryPangangCenterFileIndexCount();

    List<String> queryCenterPanGangMinioPath(String fileId);

    int updateFilePathByFileId(@Param("fileId")String fileId, @Param("filePath")String filePath);

}
